package com.designpatternspart2.structuraldesignpatterns.bridgepattern;

/**
 *
 * @author Lance
 */
public class BigBus extends Vehicle
{

    public BigBus(Engine engine)
    {
        super.setWeightInKilos(3000);
        super.setEngine(engine);
    }

    @Override
    public void drive()
    {
        System.out.println("\nThe big bus is driving");
        int horsepower = getEngine().go();
        reportOnSpeed(horsepower);
    }
}
